//
//  UILabel + Extension.swift
//  microBlog
//
//  Created by apple on 16/4/16.
//  Copyright © 2016年 Hill. All rights reserved.
//

import UIKit

extension UILabel {
    
    convenience init(textColor: UIColor, textFont: CGFloat, preferredMaxLayoutWidth: CGFloat = 0) {
        
        self.init()
        
        self.textColor = textColor
        
        self.font = UIFont.systemFontOfSize(textFont)
        
        if preferredMaxLayoutWidth > 0 {
            
            self.preferredMaxLayoutWidth = preferredMaxLayoutWidth
            
            self.numberOfLines = 0
        }
        
        
    }
    
    
    
}
